import java.util.Scanner;

public class q38 {
    public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        System.out.println("输出一个正整数");
        int a=input.nextInt();
        int b=0;
        int c=0;

        while (a!=0){
            b=a%10;
             c=c*10+b;
              a=a/10;



        }System.out.println(c+1024);
    }
}
